package com.ehi.tsconfig.service;


import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.exec.LogOutputStream;

import java.io.File;
import java.util.List;


public class ExecuteResult extends LogOutputStream {

    @Getter
    private final List<String> lines = Lists.newLinkedList();
    @Getter
    @Setter
    private int exitValue;

    @Getter
    @Setter
    private File workDir;

    @Override
    protected void processLine(String line, int logLevel) {
        // TODO Auto-generated method stub
        lines.add(line);
    }


}
